﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AsianHouse.DataLogic;

namespace AsianHouse.Common
{
    public class BaseClass : System.Web.UI.Page
    {
        protected override void OnInit(EventArgs e)
        {
            //// Get role from configuration file
            //string role = "";// System.Configuration.ConfigurationManager.AppSettings["role"].ToString();

            //int kommuneNrTmp;
            //int? kommuneNr = null;
            //// try to parse KommuneNr from configuration file
            //if (Int32.TryParse(System.Configuration.ConfigurationManager.AppSettings["KommuneNr"], out kommuneNrTmp))
            //{
            //    kommuneNr = kommuneNrTmp;
            //}
            //CustomPrincipal principal = new CustomPrincipal(User.Identity, role, kommuneNr);

            ////set the principal to the current context  
            //HttpContext.Current.User = principal;


            base.OnInit(e);
        }
    }
}
